﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="bookDataSet" targetNamespace="http://tempuri.org/bookDataSet.xsd" xmlns:mstns="http://tempuri.org/bookDataSet.xsd" xmlns="http://tempuri.org/bookDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="bookConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="bookConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Mentor_Database.Properties.Settings.GlobalReference.Default.bookConnectionString" Provider="Microsoft.SqlServerCe.Client.3.5" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="booksTableAdapter" GeneratorDataComponentClassName="booksTableAdapter" Name="books" UserDataComponentName="booksTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="bookConnectionString (Settings)" DbObjectName="books" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>DELETE FROM books WHERE (title = @p)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="p" ColumnName="title" DataSourceName="books" DataTypeServer="nvarchar(4000)" DbType="String" Direction="Input" ParameterName="@p" Precision="0" ProviderType="NVarChar" Scale="0" Size="4000" SourceColumn="title" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [books] ([author], [title], [keywords]) VALUES (@p1, @p2, @p3)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="author" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="title" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="keywords" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT [author], [title], [keywords] FROM [books]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>UPDATE books SET author = @auth, title = @title, keywords = @keywords
WHERE (title = @p)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="auth" ColumnName="author" DataSourceName="books" DataTypeServer="nvarchar(4000)" DbType="String" Direction="Input" ParameterName="@auth" Precision="0" ProviderType="NVarChar" Scale="0" Size="4000" SourceColumn="author" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="title" ColumnName="title" DataSourceName="books" DataTypeServer="nvarchar(4000)" DbType="String" Direction="Input" ParameterName="@title" Precision="0" ProviderType="NVarChar" Scale="0" Size="4000" SourceColumn="title" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="keywords" ColumnName="keywords" DataSourceName="books" DataTypeServer="nvarchar(4000)" DbType="String" Direction="Input" ParameterName="@keywords" Precision="0" ProviderType="NVarChar" Scale="0" Size="4000" SourceColumn="keywords" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="p" ColumnName="title" DataSourceName="books" DataTypeServer="nvarchar(4000)" DbType="String" Direction="Input" ParameterName="@p" Precision="0" ProviderType="NVarChar" Scale="0" Size="4000" SourceColumn="title" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="author" DataSetColumn="author" />
              <Mapping SourceColumn="title" DataSetColumn="title" />
              <Mapping SourceColumn="keywords" DataSetColumn="keywords" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="bookConnectionString (Settings)" DbObjectName="books" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     author, title, keywords
FROM         books
WHERE     (keywords LIKE @p)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="p" ColumnName="keywords" DataSourceName="books" DataTypeServer="nvarchar(4000)" DbType="String" Direction="Input" ParameterName="@p" Precision="0" ProviderType="NVarChar" Scale="0" Size="4000" SourceColumn="keywords" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="bookDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="bookDataSet" msprop:Generator_DataSetName="bookDataSet" msprop:EnableTableAdapterManager="True">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="books" msprop:Generator_UserTableName="books" msprop:Generator_RowDeletedName="booksRowDeleted" msprop:Generator_RowChangedName="booksRowChanged" msprop:Generator_RowClassName="booksRow" msprop:Generator_RowChangingName="booksRowChanging" msprop:Generator_RowEvArgName="booksRowChangeEvent" msprop:Generator_RowEvHandlerName="booksRowChangeEventHandler" msprop:Generator_TableClassName="booksDataTable" msprop:Generator_TableVarName="tablebooks" msprop:Generator_RowDeletingName="booksRowDeleting" msprop:Generator_TablePropName="books">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="author" msprop:Generator_UserColumnName="author" msprop:Generator_ColumnVarNameInTable="columnauthor" msprop:Generator_ColumnPropNameInRow="author" msprop:Generator_ColumnPropNameInTable="authorColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="4000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="title" msprop:Generator_UserColumnName="title" msprop:Generator_ColumnVarNameInTable="columntitle" msprop:Generator_ColumnPropNameInRow="title" msprop:Generator_ColumnPropNameInTable="titleColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="4000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="keywords" msprop:Generator_UserColumnName="keywords" msprop:Generator_ColumnVarNameInTable="columnkeywords" msprop:Generator_ColumnPropNameInRow="keywords" msprop:Generator_ColumnPropNameInTable="keywordsColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="4000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:books" />
      <xs:field xpath="mstns:title" />
    </xs:unique>
  </xs:element>
</xs:schema>